import request from "@/plugins/axios";
//  公海客户列表
export function listApi(data) {
  return request({
    url: "/crm/customerPool/index",
    method: "post",
    data,
  });
}
//  公海客户创建
export function addApi(data) {
  return request({
    url: "/crm/customerPool/create",
    method: "post",
    data,
  });
}
//  公海客户修改
export function saveApi(data) {
  return request({
    url: "/crm/customerPool/save",
    method: "post",
    data,
  });
}
//  公海客户删除
export function deleteApi(data) {
  return request({
    url: "/crm/customerPool/delete",
    method: "post",
    data,
  });
}
//  领取客户
export function obtainApi(data) {
  return request({
    url: "/crm/customerPool/obtain",
    method: "post",
    data,
  });
}
//  分配客户
export function shareApi(data) {
  return request({
    url: "/crm/customerPool/share",
    method: "post",
    data,
  });
}
//  客户详情
export function detailApi(data) {
  return request({
    url: "/crm/customerPool/read",
    method: "post",
    data,
  });
}
//  操作记录
export function logsApi(data) {
  return request({
    url: "/crm/customerPool/logs",
    method: "post",
    data,
  });
}
//  上传
export function updateApi(data) {
  return request({
    url: "/crm/customer/import",
    method: "post",
    data,
  });
}
// 导出
export function exportApi(data) {
  return request({
    url: "/crm/export/pools",
    method: "post",
    data,
    responseType: "blob",
  });
}
